package com.start_eternity.oasissafewalk.service;
import com.start_eternity.oasissafewalk.pojo.PageBean;
import com.start_eternity.oasissafewalk.pojo.Parent;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * author:ZhangT
 * Date:2024 / 03 / 14 / 9:14
 * Description:
 */
public interface ParentService {

    //分页查询
    public PageBean queryPage(int current, int size);

    //插入数据
    public int inserting(Parent parent);

    //修改家长的基本个人数据
    public int updating(Parent parent);

    //账户删除
    public int delById(Integer pId);

    //根据id查询
    public Parent queryById(Integer pId);

    //查询自己关联的学生
    public List<Parent> queryListByPId(Integer pId);

    //根据家长id和学生id确定orderNo内容
    public String selDetails(Integer pId, Integer sId);

}
